#ifndef PORT_HPP
#define PORT_HPP

class Pin;

class Port {
public:
    virtual ~Port() = 0;
    virtual bool open(void) = 0;
    virtual bool close(void) = 0;
    virtual int read(void *buff,int size) = 0;
    virtual int write(void *buff,int size) = 0;

    virtual Pin *getPin(int pin_number) = 0;
};

#endif
